﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="QuanLyPhongChieu.aspx.cs" Inherits="LotteCinema.Admin.QuanLyPhongChieu" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style27
        {
            width: 377px;
        }
        .style28
        {
            width: 377px;
            margin-left: 80px;
        }
        .style30
        {
            text-align: right;
            width: 253px;
        }
        .style31
        {
            width: 253px;
        }
        .style32
        {
            width: 832px;
        }
        .style33
        {
            text-align: center;
            width: 832px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="title"  style="font-size:14pt;">QUẢN LÝ PHÒNG CHIẾU</div>
    <table style="width:100%;">
        <tr>
            <td class="style26" colspan="3" align="center">
                <asp:Label ID="lblThongBao" runat="server" ForeColor="Red" Font-Size="12pt"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
    <table style="width:100%;">
        <tr>
            <td class="style27" align="center">
                &nbsp;</td>
            <td>
                <asp:Label ID="Label1" runat="server" Font-Size="12pt"  Text="Mã Phòng:"></asp:Label>
                &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
                <asp:DropDownList ID="DDLMaPhong" runat="server" Height="20px" Width="339px" 
                    AutoPostBack="True" 
                    onselectedindexchanged="DDLMaPhong_SelectedIndexChanged" 
                    style="margin-left: 37px">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td class="style27">
                &nbsp;</td>
            <td>
                <asp:Label ID="Label2" runat="server" Font-Size="12pt" Text="Mã Loại Phòng:"></asp:Label>
                &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
                <asp:DropDownList ID="DDLMaLoaiPhong" runat="server" Height="20px" 
                    Width="339px">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td class="style28">
                &nbsp;</td>
            <td>
                <asp:Label ID="Label3" runat="server" Font-Size="12pt" Text="Mã Rạp:"></asp:Label>
                &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
                <asp:DropDownList ID="DDLMaRap" runat="server" Height="20px" Width="339px" 
                    style="margin-left: 51px">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td class="style28">
                &nbsp;</td>
            <td>
                <asp:Label ID="Label4" runat="server" Font-Size="12pt" Text="Mô Tả:"></asp:Label>
                &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
                <asp:TextBox ID="txtMoTa" runat="server" Height="61px" TextMode="MultiLine" 
                    Width="339px" style="margin-left: 63px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style28">
                &nbsp;</td>
            <td>
                <asp:Label ID="Label5" runat="server" Font-Size="12pt" Text="Tình Trạng:"></asp:Label>
                &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
                <asp:DropDownList ID="DDLTinhTrang" runat="server" Height="20px" Width="339px" 
                    style="margin-left: 34px">
                </asp:DropDownList>
            </td>
        </tr>
    </table>
    <table style="width:100%;">
        <tr>
            <td class="style31">
                &nbsp;</td>
            <td class="style32">
                &nbsp;</td>
            <td>
                <br class="Apple-interchange-newline" />
            </td>
        </tr>
        <tr>
            <td class="style30">
                &nbsp;</td>
            <td class="style33">
                <asp:GridView ID="grPhongChieu" runat="server" AllowPaging="True" 
                    AllowSorting="True" AutoGenerateColumns="False" BackColor="White" 
                    BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" 
                    DataKeyNames="MAPHONG" EnableTheming="True" 
                    onselectedindexchanged="grPhongChieu_SelectedIndexChanged" 
                    style="margin-left: 236px">
                    <Columns>
                        <asp:CommandField ShowSelectButton="True" SelectText="Chọn" />
                        <asp:BoundField DataField="MAPHONG" HeaderText="MAPHONG" ReadOnly="True" 
                            SortExpression="MAPHONG" />
                        <asp:BoundField DataField="MOTA" HeaderText="MOTA" SortExpression="MOTA" />
                        <asp:BoundField DataField="MALP" HeaderText="MALP" SortExpression="MALP" />
                        <asp:BoundField DataField="MARAP" HeaderText="MARAP" SortExpression="MARAP" />
                        <asp:BoundField DataField="TINHTRANG" HeaderText="TINHTRANG" 
                            SortExpression="TINHTRANG" />
                    </Columns>
                    <FooterStyle BackColor="White" ForeColor="#000066" />
                    <HeaderStyle BackColor="#FF6600" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                    <RowStyle ForeColor="#000066" />
                    <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#F1F1F1" />
                    <SortedAscendingHeaderStyle BackColor="#007DBB" />
                    <SortedDescendingCellStyle BackColor="#CAC9C9" />
                    <SortedDescendingHeaderStyle BackColor="#00547E" />
                </asp:GridView>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:QuanLyRapPhim1ConnectionString %>" 
                    SelectCommand="SELECT * FROM [PHONGCHIEU]"></asp:SqlDataSource>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style30">
                &nbsp;</td>
            <td class="style33">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style30">
                &nbsp;</td>
            <td class="style33">
                <asp:ImageButton ID="imThem" runat="server" Height="52px" 
                    ImageUrl="~/Images/THEM.png" Width="110px" onclick="imThem_Click" 
                    style="margin-left: 19px" />
                <asp:ImageButton ID="imXoa" runat="server" Height="52px" Visible="false"
                    ImageUrl="~/Images/xoa.png" Width="110px" onclick="imXoa_Click" />
                <asp:ImageButton ID="imSua" runat="server" Height="52px" 
                    ImageUrl="~/Images/SUA.png" Width="110px" onclick="imSua_Click" />
            </td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
</asp:Content>
